package twiddles.littleprincess;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import twiddles.littleprincess.dao.ITestDao;

public class TestDataGeneratorController implements Controller {

	private ITestDao testDao;
	
	
	public ModelAndView handleRequest(HttpServletRequest request,
            HttpServletResponse response) {
		testDao.createTestData();
        return new ModelAndView("testdatagenerator");
    }


	public void setTestDao(ITestDao testDao) {
		this.testDao = testDao;
	}
	
	
	
	
}
